﻿@model IEnumerable<DiyBook.Models.Borrow>

@{
    ViewBag.Title = "Index";
}

<h2>借书管理</h2>

<p>
    @Html.ActionLink("借/还书", "Bsearch")
</p>
<table>
    <tr>
        <th>
            borrowID
        </th>
        <th>
            bookName
        </th>
        <th>
            userName
        </th>
        <th>
            Phone
        </th>
        <th>
            editor
        </th>
        <th>
            addTime
        </th>
        <th>
            status
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.borrowID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bookName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.userName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.editor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.addTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.status)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.borrowID }) |
            @Html.ActionLink("Details", "Details", new { id=item.borrowID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.borrowID })
        </td>
    </tr>
}

</table>
